package com.wangx1n.boobey.entity;

import java.util.ArrayList;
import java.util.List;

/**
@author wangxin
@create 2020-06-12 23:45
*/
public class WordPkExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WordPkExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOpenidIsNull() {
            addCriterion("openid is null");
            return (Criteria) this;
        }

        public Criteria andOpenidIsNotNull() {
            addCriterion("openid is not null");
            return (Criteria) this;
        }

        public Criteria andOpenidEqualTo(String value) {
            addCriterion("openid =", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotEqualTo(String value) {
            addCriterion("openid <>", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThan(String value) {
            addCriterion("openid >", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidGreaterThanOrEqualTo(String value) {
            addCriterion("openid >=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThan(String value) {
            addCriterion("openid <", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLessThanOrEqualTo(String value) {
            addCriterion("openid <=", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidLike(String value) {
            addCriterion("openid like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotLike(String value) {
            addCriterion("openid not like", value, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidIn(List<String> values) {
            addCriterion("openid in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotIn(List<String> values) {
            addCriterion("openid not in", values, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidBetween(String value1, String value2) {
            addCriterion("openid between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andOpenidNotBetween(String value1, String value2) {
            addCriterion("openid not between", value1, value2, "openid");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreIsNull() {
            addCriterion("cet4_score is null");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreIsNotNull() {
            addCriterion("cet4_score is not null");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreEqualTo(Integer value) {
            addCriterion("cet4_score =", value, "cet4Score");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreNotEqualTo(Integer value) {
            addCriterion("cet4_score <>", value, "cet4Score");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreGreaterThan(Integer value) {
            addCriterion("cet4_score >", value, "cet4Score");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("cet4_score >=", value, "cet4Score");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreLessThan(Integer value) {
            addCriterion("cet4_score <", value, "cet4Score");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreLessThanOrEqualTo(Integer value) {
            addCriterion("cet4_score <=", value, "cet4Score");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreIn(List<Integer> values) {
            addCriterion("cet4_score in", values, "cet4Score");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreNotIn(List<Integer> values) {
            addCriterion("cet4_score not in", values, "cet4Score");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreBetween(Integer value1, Integer value2) {
            addCriterion("cet4_score between", value1, value2, "cet4Score");
            return (Criteria) this;
        }

        public Criteria andCet4ScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("cet4_score not between", value1, value2, "cet4Score");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreIsNull() {
            addCriterion("cet6_score is null");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreIsNotNull() {
            addCriterion("cet6_score is not null");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreEqualTo(Integer value) {
            addCriterion("cet6_score =", value, "cet6Score");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreNotEqualTo(Integer value) {
            addCriterion("cet6_score <>", value, "cet6Score");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreGreaterThan(Integer value) {
            addCriterion("cet6_score >", value, "cet6Score");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("cet6_score >=", value, "cet6Score");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreLessThan(Integer value) {
            addCriterion("cet6_score <", value, "cet6Score");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreLessThanOrEqualTo(Integer value) {
            addCriterion("cet6_score <=", value, "cet6Score");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreIn(List<Integer> values) {
            addCriterion("cet6_score in", values, "cet6Score");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreNotIn(List<Integer> values) {
            addCriterion("cet6_score not in", values, "cet6Score");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreBetween(Integer value1, Integer value2) {
            addCriterion("cet6_score between", value1, value2, "cet6Score");
            return (Criteria) this;
        }

        public Criteria andCet6ScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("cet6_score not between", value1, value2, "cet6Score");
            return (Criteria) this;
        }

        public Criteria andHsScoreIsNull() {
            addCriterion("hs_score is null");
            return (Criteria) this;
        }

        public Criteria andHsScoreIsNotNull() {
            addCriterion("hs_score is not null");
            return (Criteria) this;
        }

        public Criteria andHsScoreEqualTo(Integer value) {
            addCriterion("hs_score =", value, "hsScore");
            return (Criteria) this;
        }

        public Criteria andHsScoreNotEqualTo(Integer value) {
            addCriterion("hs_score <>", value, "hsScore");
            return (Criteria) this;
        }

        public Criteria andHsScoreGreaterThan(Integer value) {
            addCriterion("hs_score >", value, "hsScore");
            return (Criteria) this;
        }

        public Criteria andHsScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("hs_score >=", value, "hsScore");
            return (Criteria) this;
        }

        public Criteria andHsScoreLessThan(Integer value) {
            addCriterion("hs_score <", value, "hsScore");
            return (Criteria) this;
        }

        public Criteria andHsScoreLessThanOrEqualTo(Integer value) {
            addCriterion("hs_score <=", value, "hsScore");
            return (Criteria) this;
        }

        public Criteria andHsScoreIn(List<Integer> values) {
            addCriterion("hs_score in", values, "hsScore");
            return (Criteria) this;
        }

        public Criteria andHsScoreNotIn(List<Integer> values) {
            addCriterion("hs_score not in", values, "hsScore");
            return (Criteria) this;
        }

        public Criteria andHsScoreBetween(Integer value1, Integer value2) {
            addCriterion("hs_score between", value1, value2, "hsScore");
            return (Criteria) this;
        }

        public Criteria andHsScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("hs_score not between", value1, value2, "hsScore");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}